#ifndef __MQTT_EVENT_H__
#define __MQTT_EVENT_H__

#include "mqtt_client.h"

#ifdef __cplusplus
extern "C" {
#endif

extern char MQTT_TOPIC_ATTR[50];
extern char MQTT_TOPIC_FUNC[50];
extern char MQTT_TOPIC_EVENT[50];
extern char MQTT_TOPIC_INFO[50];
extern char MQTT_TOPIC_CTRL[50];
extern char MQTT_TOPIC_REPORT[50];
extern char MQTT_TOPIC_DEBUG[50];
extern char MQTT_TOPIC_temp[50];

extern esp_mqtt_client_handle_t client;
extern bool wifi_stop_flag;

extern void mqtt_task(void);
extern void mqtt_reconnect(void);

#ifdef __cplusplus
}
#endif

#endif


